{template 'common/header'}
{template 'common/slide'}
<style>
	body{
	font:{$_W['styles']['fontsize']} {$_W['styles']['fontfamily']};
	color:{$_W['styles']['fontcolor']};
	padding:0;
	margin:0;
	background-image:url('{if !empty($_W['styles']['indexbgimg'])}{$_W['styles']['indexbgimg']}{/if}');
	background-size:cover;
	background-color:{if empty($_W['styles']['indexbgcolor'])}#ECECEC{else}{$_W['styles']['indexbgcolor']}{/if};
	{$_W['styles']['indexbgextra']}
	}
	a{color:{$_W['styles']['linkcolor']}; text-decoration:none;}
	{$_W['styles']['css']}
	.logo{padding:10px;}
	.logo div{ text-align:center;}
	.logo span{color:{$_W['styles']['fontnavcolor']}; display:inline-block; width:30px; height:30px; margin:5px; overflow:hidden; }
	.logo i{display:inline-block; width:30px; height:30px; font-size:20px; color:#fff; background-color:red; line-height:30px; text-align:center;}
	.logo img{height:30px; margin:0 auto;}
	.box{width:100%;}
	.box .box-item{float:left; display:block; width:20%; height:90px; line-height:90px; text-align:center; color:#ffffff; margin-bottom:5px; text-decoration:none;}
	.box .box-item i{display:block; height:63px; line-height:63px; font-size:35px; text-align:center; margin-bottom:3px;}
	.box .box-item span{color:{$_W['styles']['fontnavcolor']}; display:block; height:20px; line-height:20px; text-align:center; width:90%; margin:0 5%; overflow:hidden;}
	.list,h3,p{padding:0px; margin:0px;}
	.list li{padding: 5px 5px 0 5px; list-style:none;}
	.list li a{display:block; height:71px; padding:5px;background:#FFF; border:1px #DDD solid; border-radius:3px;color:#333; overflow:hidden; text-decoration:none !important; position:relative;}
	.list li a .thumb{width:80px; height:60px;}
	.list li a .title{font-size:14px; padding-left:90px;}
	.list li a .createtime{font-size:12px; color:#999; position:absolute; bottom:5px;padding-left:90px;}
</style>
<!--logo-->
<div class="logo">
	<div class="clearfix">
		{data func="site_navs" section="1" item="nav"}
		<a href="{$nav['url']}" class="box-item">
		<span>
		{if !empty($nav['icon'])}
		<img src="{$_W['attachurl']}{$nav['icon']}">
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		</span>
		</a>
		{/data}
	</div>
</div>
<div class="box clearfix">
	{php $num = 0;}
	{data func="site_navs" section="2" item="nav"}
	{php if($num == 0) $bg = '#3e5d96';}
	{php if($num == 1) $bg = '#1dadec';}
	{php if($num == 2) $bg = '#d94a39';}
	{php if($num == 3) $bg = '#e7912a';}
	{php if($num == 4) $bg = '#533630';}
	<a href="{$nav['url']}" class="box-item" style="background:{$bg};">
		{if !empty($nav['icon'])}
		<i style="background:url({$_W['attachurl']}{$nav['icon']}) no-repeat;background-size:cover; height:70%; margin:0 auto; margin-bottom:3px;"></i>
		{else}
		<i class="fa {$nav['css']['icon']['icon']}" style="{$nav['css']['icon']['style']}"></i>
		{/if}
		<span style="{$nav['css']['name']}" title="{$nav['name']}">{$nav['name']}</span>
	</a>
	{php $num++; if($num > 4) $num = 0;}
	{/data}
</div>
<!--内容栏-->
<div class="list clearfix">
	{data module="site" func="site_article" cid="$cid" assign="result" return="true"}
	{loop $result['list'] $row}
	<li>
		<a href="{$row['linkurl']}">
			{if $row['thumb']}<img src="{$row['thumb']}" class="pull-left thumb" onerror="this.parentNode.removeChild(this)" />{/if}
			<div class="title">{php echo cutstr($row['title'],25,1);}</div>
			<div class="createtime">{php echo date('Y-m-d H:i:s', $row['createtime'])}</div>
		</a>
	</li>
	{/loop}
</div>

{template 'common/footer'}